package com.wfx.controller;


import com.wfx.entity.PageDTO;
import com.wfx.entity.PageResult;
import com.wfx.entity.WxbCustomer;
import com.wfx.entity.WxbOrder;
import com.wfx.service.IWxbCustomerService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zhu
 * @since 2021-01-23
 */
@RestController
@RequestMapping("/customer")
@CrossOrigin
public class WxbCustomerController {
    @Autowired
    private IWxbCustomerService wxbCustomerService;

    @PostMapping("/findAll")
    @ApiOperation("分页加条件")
    public List<WxbCustomer> search(){
        return wxbCustomerService.findAll();
    }

}
